fixed the undefined, added some line to src/Makefile.build