[compilation] Fix compilation on x11-based systems