Clean up support for Apple in CMake