This happens because the gcc used in the Beaglebone toolchain is too old and does not support C++11.
Our toolchains exactly match the gcc version used natively on the board. We are planning to recheck the gcc version in the latest Beaglebone images and release an updated toolchain in the next 2-3 weeks.