add function prototypes and defines extracted from header