vm: Fix compilation on Windows. Fixes #1086.