moved main compilation to bottom of makefile