Fix cmake script to compile on linux/osx
fix last commit
fix last commit