Support both MinGW and MinGW-w64.