Add support for MinGW compilation