Fix Compilation in release mode with Visual Studio