Build under mingw and gcc 4.6