Makefile changed, added -Werror, fixed some warnings