Fixes for building on MacOSX 10.9

Updated build instructions and removed redundant code that causes problems when compiling on OSX.