build: remove code for cmake < 2.6