Fixed icarus crash on OSX/Linux

made this consistent with iterator handling elsewhere
Merge pull request #4 from redsaurus/sdl

Fixed icarus crash on OSX/Linux