Problems linking statically with libX11