X11 API compatibility function

Importing the default includes of the X11 API will create many defines
such as "None" that break enums in other standard headers (e.g. Qt).

Therefore, the calls to the X11 API have been moved into their own
translation unit.