cpp: Workaround old boost version in Ubuntu 12.04

It lacks Boost.Container; substitute with std::array.