Easter cleanup

 - fix warning for CMake >= 2.8.12.2
 - rename a policy, a function and all macros
 - delete old files