Fixed GCC Warnings

Added -Wall to the Makefile and fixed the warnings.