Merge pull request #1 from hughbe/patch-1

Fix CMAKE_C_VISIBILITY_PRESET for cmake versions greater than 1.8