Fix build against C++03 stdlib