Activated more useful warnings and fixed them

Added more warnings to Makefile and resolved every warning from those.