Improved CMake files to work with the Mac Ports environment.