Add support for cmake 3.x