Support for MacOS X

Now it’s possible to compile it in MacOS X.