Remove tabs and fix crash in non-sdl build