Adapt to non-C++11.