Changes necessary to compile the code for Silverlight and Windows Phone platforms