minor fixes in build system
figure Makefile fix