The _PGsql module doesn't compile on windows because of the poll stuff (and maybe other things too). Take a look in modules/files/file.c for how to do things like that in a more portable way.
You can see build results in xenofarm (burns.roxen.com and starcraft.roxen.com). In weekdays they only build during evenings and nights, but the response is better in the weekends.