Fix MinGW Platform Detect problem