win build: its probably simpler in the long run to rename PrintDlg() in FF

to something that doesn't clash with a global symbol on windows. There are
also some other changes that shouldn't effect other platforms but which will
help the code to compile on a mingw32 environment.