Compile fix for windows with /W3 /WX /EHsc flags