Started removing dependency on SDL.

Starting to make SDL dependency optional.
Have only altered the entry point, the rest of the code still depends on
SDL directly.