Add configure check for setenv() POSIX function.
Only build replacement BSD setenv/putenv/unsetenv on systems that don't provide POSIX setenv.

This fixes building on OS X, where shared libraries cannot directly access
environ (compat.o is built into some plugins).  See https://github.com/BitchX/BitchX/pull/8.

Reported-By: mistydemeo