Resolving System.outofmemoryexception When Compiling Your Wpf Application