use cmake mods for fixing mac build error and hopefully proper installation happening