Changes to allow cake to work on Mac OS X. In particular, this adds a platform check and a mac OS X specific way of checking the number of CPUs.

Also added a Mac OS X specific /etc/cake.conf demo file which works with gcc-mp-4.6 (the Macports release of GCC 4.6)