Fix building for desktop and silverlight projects.