Fix a lack of typedefs (removing some warnings)