… don’t. Use a XUL window instead, and reorder the buttons to match platform standards yourself (perhaps using CSS ordinal groups). You’re going to save a lot of hair from being torn out that way.
Update 27/6: Enn pointed out that I should file bugs for my issues. He’s right, so here are the bugs I’ve filed so far.