Improve Windows Phone support. Resolves #15.