Actually fixed the issue this time

Confirmed in Ubuntu. The issue was I was calling std::atoi instead of
atoi, I thought it was in std. I have NO idea why this didn't pop up in
OS X.