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