s3-prefork: Add common utilities for daemons