Ported file_chooser and other needed classes.