Fix make check PROFILE=net_2_0 in System.Runtime.Serialization.