Add SCM versioning and config.h.