Switched from pthread to SDL thread support.