Avoid GCC warnings caused by Boost (-Wunused-local-typedefs).