Don't use std::begin/end

They aren't supported by libstdc++.