Changwoo Ryu reported a bugfix Young-Sik Won compilation fix on mingw32