Minor fix and optimization for exporting TG and Pgraph with sharedlib