Support for OSX
Update autogen files
Merge pull request #4 from samoht/master

Fix OSX support