Correct various errors and implement basic SDL video output.