Fixed some warnings (added -Werror)