Downgraded a cmake helper file for cmake 2.6