Cmake build: Check for string COW by checking for library, not compiler

Changed according to automake behaviour, see 385f3e8abdf9840ba89b502c1c83345e4ca40344
Merge remote-tracking branch 'github/build-bot-master' into bleeding-edge-master
2014.12.19-12.00