add instancetype to class constructors
add OS X support
Merge pull request #43 from peyton/instancetype

instancetype in class constructors