fix cmake 2.8 compat