Fix for building with gcc 4.7.

Review: https://reviews.apache.org/r/15177