Changes and documentation for compiling on OS X 10.8

@shelhamer please review; should be fine: tested on os x 10.8 obviously and the cluster (fedora)