enabled warnings, fixed ctype conversions