Add compatibility for MinGW (Windows)