Fix Silverlight build errors