fix up linkage again for cmake > 2.8.10