Changed SDL framework #includes for OSX.
Changes for OSX <10.8 compatibility

Removed ErrorContext system which relied on thread local storage, which
Xcode doesn't like for OSX <10.8.  (It was very new and wasn't used for
anything yet, so this is no big deal.  Will re-visit later)