Add config check and thread safe wrappers for the XRender library.

8 files changed