compatible with MinGW on Windows platform