Refs #281. Detect _WIN32 macro for Windows API.

http://www.mail-archive.com/bug-gnulib@gnu.org/msg05722.html