pex-win32 is used by both MinGW and generic "winnt" targets, so I'd say keeping it generic is preferred, but if MinGW can be detected, add those checks too.
Using WindowsRoutinesForQueryingStuff is fine; that file is already Win32 specific. Just don't break the mscdll stuff ;-)