Implement some simple basic theme hints.

We need to do this here, not QtWayland, so that all applications get them.
QtWayland uses QGenericUnixTheme.
Cleanup freetype data in a thread-safe way