Enable interrupts on Windows.
Fix uses of old API.