Option for exporting tg and pgraph with sharedlibrary