Update Makefile to build the core