Merge pull request #86 from nirbheek/master

Add support for cross-compiling the shared library for Windows and OS X.  Thanks for the contribution.