Fix various errors (mostly VGA related).