Some minor cleaning up of common CMake file [ci skip].
On OS X, make sure that we use at least the Mac OS X 10.7 SDK.