Handle None result from find_library

Wrap all library loads into a separate function which handles concerning
return values from the involved ctypes functions.
Catch ImportErrors from xcb and X utility libraries