Fixed core makefile