Increase warning level and fix warnings