useDynlib added to cpp functions for roxy use