moved utility functions into strus as libstrus_utils