[win32] improve the pbc_to_exe fix

and next time please check the smoke-me branch at first, which already included
those fixes (and more)