fixed cmake file to compile with unix