makefile optimization & fix derp