Fix -Wunused-local-typedefs warning