fixes of MacOS
Merge pull request #18 from l1ll1/master

fixes of MacOS