Fix apple cmake and stop befonre instell rules until they are fixed