Fixed compile error for desktop build with X11 enabled