add support for NetBSD

Same as https://github.com/vincenthz/hs-cryptohash/pull/10