Fix build without C++11

Fixes Bug 710949.