fixing cmake bugs