[build] Fix build on x11 based systems