Refactor wx/sdl into nicer namespaces