test against __WINDOWS__ not __WIN32__

__WIN32__ was defined by MinGW though