Fixed some issues with compiling using the Makefile.