Import a stripped down version of util.c. 

Adjust DKIM signer following the import of helper functions.