RFC: Restore build on OSX

Hi,

I need to apply this patch to build / test cppcheck on OSX, that's current in a "special" situation: the compiler supports C++11, but one can't use the built-in STL due to TODO, hence we need to use GNU's, that does not have cend/cbegin yet. Please consider merging so that one can contribute from OSX

Thanks,
  Simon