Add typedefs for function pointers