Add src/core/alloc.h to Makefile and fix build