Updated Makefiles to build Darwin (OSX)

Added conditionals to add and remove specific Linux command line
switches.  Did the minimum to make the sample code run.  Someone with
more experienc with Mac Makefiles should have a look