Fix target platform detection for x64 MinGW