windows: fix the most egregious posix.c style errors