Fix last commit which fails to build when X11 is not enabled