Don't use deprecated filename; instead use URL. Refer to a file using fileSystemRepresentation: this will correctly escape non-ascii characters.

Signed-off-by: C.W. Betts <computers57@hotmail.com>
Define NSInteger if using 10.4 or earlier. Have openPanelDidEnd:returnCode:contextInfo: use an NSInteger instead of int so that the signature matches what the NSOpenPanel delegate expects.

Signed-off-by: C.W. Betts <computers57@hotmail.com>
Make the GTK UI build on OS X. Moved the terminal includes from qemu-char.c to qemu-common.h. Removed the terminal includes from gtk.c.

Signed-off-by: C.W. Betts <computers57@hotmail.com>