Add -Wunused-local-typedefs to tgen compile