Put SDL code in a new class (cVideo), performance tweaks