fix 64bit warnings
support ARC, modernize.
Merge pull request #1 from aaroncrespo/64bit-warnings

64bit warnings