mapi: Fix enums.c build with other build systems.