Fixed usage of cbegin() and cend() breaking building with Qt 4.