Move main into main.c and use the implicit sdl main thread as the rockbox main thread...