modified CMakeLists.txt to avoid build errors on FreeBSD