api.c compiles correctly under refined Makefile