windows: Explicitly use ANSI version of certain WinAPI functions