Try to put object files in build dir
Fix bugs in Makefile