widgets/textbox: port compiling warning fix from Bernard
RTGUI: fix some compiling warning in MDK

MDK will complain about "warning:  #1-D: last line of file ends without
a newline" if the source file is not ended with a newline.