* fix build on OS X via CMake

This pull request fixes build via CMake on Apple OS X.