Properly handle typedef of function pointers