Finding libX11.so.6 in a slightly more intelligent way: Check that dlopen actually succeeds, if not found in one of the fixed paths, look in the LD_LIBRARY_PATH.