Adding shared library export macros.
Windows and Apple platform fixes.
Documentation fix.