Freetype: split some functions in text_renderer.c

Too many functions are not related to freetype and could be used by
other renderers like QuartText or DirectWrite.
Moreover, this file was way too long.

This is just the beginning, and there are no functionnal change so far.
configure: require at least Qt 5.1.0 to use Qt5
Qt: replace a remnant of Qt3