fixed backward compatibility cmake issues