Senscape/Dagon — pull request #105 by AMDmi3 (2014-02-05 23:12:52+00:00)
Title: Tweak build on FreeBSD

* add configuration for bsd (FreeBSD)
* libdl is not required on FreeBSD
* it's better to detect lua with pkgconfig (probably also true for linux)
* linking with threads is correctly done with -pthread