New Makefile with warnings, fixed warnings in code