Fix compilation of System.Core tests.