win32: update for API changes