fix MinGW compilation