cmake working now. Some warmings are still there