Fix duplicated origin error when building WITHOUT_X11