vrt: Fix exceptions on Windows.