tweaks to make Sim compatible with OS X 10.8
Merge pull request #1 from czechboy0/master

OS X 10.8 compatibility tweaks