Do not use cbegin/cend, it's c++11 only so not provided by OSX