realvec: fix compilation without C++11