Slowly making SDL support optional.

Adding code checks to allow SDL to be removed completely since we were
not using any hardware acceleration to run the app.