WINAPI wasn't getting defined with gcc-3.
The symbol __Windows__ is defined when building a native (non-Cygwin) binary.
Not yet tested on Win32.