Moved platform specific UI code (MessageBox, DirectoryChooser) into osinterface.c