New Makefile & fixed gcc warnings