Removed most of the warnings seen when using MSVC.