Fixes for building on Mavericks

Brief summary of changes:
* Fixed #76 as discussed
* Had to modify signature of max and min functions in Random because libc++ on Mavericks complains if
  * They return a floating point type
  * They are not _constexpr_
* Had to link to zlib for some reason
* Had to fix LLVM API and overloaded trig functions