Various pygame compat fixes.