Add startup hook to fix Java GUI applications