Fix compilation bug on mingw-w64 gcc 4.9.2