Enabled warnings in Makefile and fixed all warnings/errors