Allow the library to work in WPF application