[BZ-1058322] add adapters of kbuilder, ksession and kbase options for legacy 5 API