Fixed builds on GCC 4.6 and Clang 5.0.