Macos cmake

Fixes https://github.com/bluecherrydvr/bluecherry-client/issues/83 for MacosX