Add stddef include for sortedcache

All use of sortedcache will need this header, so put it in the
definition of the sortedcache API.