osx: use SHA1 instead of MD5 in homebrew formula
tests: define ck_assert_ptr_eq if check is too old
compat: remove copyright notice for setproctitle()

It's an empty function!
compat: add `strndup()` compatibility function

This function does not exist on OS X 10.6 for example. This was a long
time GNU extension.