For the BSD systems setrpctitle(3) sits in libc and declared in unistd.h. So, there is no need for any additional headers and libraries. Here is a small patch to address this sitiation.
Created attachment 1858 [details]
Detection of setproctitle() in libc
Created attachment 1859 [details]
include setproctitle.h only if it exists
Both applied, thanks!