fix CMAKE build