more cleanups; make shortfin -Wall friendly

This set of changes allows shortfin to be built without any warnings.  Most of the warnings were due to type mismatches or implicit definitions.