fix mono/.net 2.0 compilation issue