improved error messages for functions in other prototypes