Looking a the main for ods-signer now I think you will need to move engine_config_*() functions to a separate file so that ods-signer can only include those rather then all of this.