compiler, lib: cpp: more dependencies on libthryft
compiler: use typedef as a type directly