BSD support.

Use setproctitle() on BSD instead of prctl().
Add libintl to target_link_libraries for NetBSD.