Fixed Mac OS compilation

I fixed cmake script for Mac OS platform