Use PUBLIC linkage only if CMake > 2.8.12, otherwise use LINK_PUBLIC