Fix windows build with SCons amd remove more warnings