Fix forms designer error when non .NET assembly referenced by project.