Fix bug for Mac OS X
Merge pull request #52 from Relrin/dev

Fix bug for Mac OS X