Add unix versions of Win32 functions. Untested