Bumped up warning level and fixes some resulting warnings to clean up the build