Silverlight build fix.

Fixes #628.