Fix compilation with C++03 compilers.

Fix compilation with C++03 compilers (e.g. gcc 4.2.1).