Fix implementation of open on windows.