Fixed build for Linux and non-C++11 compilers.