Link with CMake 2.8.12 macros