Merge pull request #108 from ktekinay/master

Added #if Target… pragmas to all methods that had been missing them
Merge pull request #51 from macoslib/master

Merge changes
Merge branch 'macoslib-master'