refactor for ARC and modern OBJC
- OSX is now a 64-bit build