fix stubs for windows