Fix build with MinGW <= 4.7.