fixed cmake building on linux