MinGW compilation error fixed