fixed cmake for linux and mac