Fix compilation for compilers that don't like forward typedefs.