CMakeLists.txt: refactor
CMakeLists.txt: refactor
CMakeLists.txt: another attempt at Mac OS X packaging stuff