Fix for MinGW compilation