MinGW: Fix stat definitions to work with MinGW runtime version 4.0