fix for libstdc++ (do not use std::cbegin())