FreeBSD support

Hello, folks!

I attach the patch which adds support for FreeBSD and fixes couple of warnings by clang. All 125 unit tests are passed.

Compilation was done with the command: cmake -DALLOW_DOWNLOADS=ON
-DENABLE_JPEG_LOSSLESS=OFF -DUSE_SYSTEM_MONGOOSE=OFF
-DDCMTK_LIBRARIES="dcmdsig" <directory>

In hope that it will be useful.

0001-FreeBSD-Fixes.patch (12.6 KB)

Hi,

Thanks for your contribution!

FreeBSD is now officially supported by Orthanc:
https://code.google.com/p/orthanc/source/detail?r=afaa55d42ddd4ba70c0e1810cbc803cf1882f3bf

S├ębastien-