allow to compile using gcc-4.x on Mac OSX