fix dist target on mac is broken
Merge pull request #989 from richardcypher/master

fix dist target on mac is broken