Fixes to support shared secret on Windows Store, Xamarin