Fix: type error for gr_text

The type error for gr_text is eradicated by adding a function prototype on the top of the file. And also the function prototype mentioned in the minui.h SHOULD be removed!