Fix broken build on GCC 4.8 due to -Wall.

With GCC 4.8, Boost fails to build from '-Wunused-local-typedefs', which
is implied by '-Wall'.