Fix build with mignw and GCC 4.6