Don't link dl on FreeBSD

Attempting to build cfengine on FreeBSD currently fails because it attempts to link dl when building cf-agent. This change will step around this by defining a IS_FREEBSD macro if os_target is freebsd or dragonflybsd and not omitting -ldl if it is true