enable correct exception handling on Windows with MS compiler