Pull some stuff from later versions of cfengine's stdlib into common.