Fix to allow .net 2.0 compilation of the main library (last 2.0 support on this version)