Fixed problems that made AppWPF not build.