Rework SDL component handling. Add more forward declarations. Sort includes.