Fixed resizing when toggling out of full screen mode with SDL 2.0.
Use SDL_WaitThread() rather than busy wait for threads to finish.