fix various iterator: for C++14 constexpr support

fix tools.test: add option --std=c++XX