fix for building Cbeta TEI