Changed how system assemblies are added as references when compiling generated serialization code.