new Mac build mods

simple changes to the previous pull.  stopped the previous crashing on Mac.