mods from Christos Zoulas to fit with netbsd-current slcompress stuff