Add --with-extra-version where supported when building HEAD