Updated default settings to fix windows compiler warnings
changed typecasting to facillitate windows build