Used pgcrypto's md5 and sha1. Fixed to compile on NetBSD