Compile/link fixes for the Mac target. Changed it to a static library.
Merge pull request #1 from slembcke/apportable

Compile/link fixes for the Mac target. Changed it to a static library.