Changed WINDOWS def to _WIN32.