Added Xcode support

Fix for issue #16
Merge pull request #18 from jonathanpeppers/master

Added RegisterAttribute and IntPtr constructor