Fixes cmakefile for mac

Fixes cmakefile for mac