Fixed locally defined but not unused typedef warnings on GCC.

Passes tests.