Update to support Windows Phone

Other than a few minor changes, this library would work great for Windows Phone.  This pull request is to make a Windows Phone compatible project.