Fixed osx compilation
Merge pull request #25 from vitalyster/osx_build

Fixed osx compilation