Clean build on OSX

Includes build instructions (issue #70) and a few fixes to get the build process to cope with Homebrew's curses installation.

Added `-fnested-functions` because nested functions are turned off by default on LLVM's gcc.