Move errno translation to win32_replacements.c