Fix Xwt initialization to work with the WPF backend