CMake: Fixed build on Mac OS X.

--HG--
extra : rebase_source : f4cf7d23db97cdaf223be63fa93c4fa713c68276