fixes compilation on mono 3.x