out of the render mode cmake file into the main one. Should fix PPC compile, and hopefully not break others.