Fix small bug with IBus and non-local hostnames, work properly if the IBus daemon is started after the SDL program, make sure text input is enabled before calling some IBus functions.