Patches to simtoi for OSX
Merge pull request #75 from matdander/master

Patches to simtoi for OSX