Fixed Makefile bugs and added libgcc