Fix compiler error in Silverlight