Make --without-x compatible with --enable-gcc-warnings.