Fix MSB3247 warnings.