Add support for FreeBSD
Merge pull request #6 from tru/freebsd

Add support for FreeBSD
Fix Linux build

The variable SYSTEM_NAME does not exist, it should be
CMAKE_SYSTEM_NAME as per
http://www.cmake.org/Wiki/CMake_Useful_Variables

MD-12499
test: none
Avoid unnecessary redefinition of atoll() under MSVC 2013

atoll() was added to the MSVC standard library under MSVC 2013
so we don't need our own definition of it.

MD-20088
test: none: Build fix
legacy information added