make compatible with EXTEND_PROTOTYPES = false