move cpu_thread stack allocation to retro_init
small cleanups