Fix compiler warnings when X11 autolaunch and launchd are both disabled