Added fixes mentioned in #3205 : changing uint to unsigned literals for compilation on Mingw 4.7.2