Add core MT API

Change-Id: Ifee37845e311ee1498471b6d68a8b2f98d30a85f
cliopts: don't assign progname if NULL

Logic should be inverted

Change-Id: Iec46673a75801adff5a565dd361255611f427e3a
Add mt bench tool

Change-Id: Idc22bae226fea7c9343654a2329c194fe3bd4e4b