1. Fix (kind of) for a deprecation warning in 10.9 - SetFrontProcess

is deprecated now, must be replaced with activateIgnoringOtherApps
(which is not exactly the same though and has probably some funny side-effects).
2. Z-order for a child borderless window is broken after (for example) switching between applications.