Making compilable on linux as well.

Hello,

These are not really complex changes only targeting the compilation scripts to work on linux as well.

Next to that, there is a change: strlcpy needs <bsd/string.h> and libbsd on linux, too.

Practically on a longterm I suggested a change to the gnu autoconf (or some similar solution) to you. I were happy to help in that.