Fixed compile for OS X.
Merge pull request #1 from Blzut3/master

Fixed compile for OS X.