improve build for mac.
Merge pull request #35 from rydotyosh/improveBuildForMac2_PR

improve build for mac.