[[ Bugfix 10676 ]] Only link to libX11 at run-time