Added compatibity for protocol v1 and v2 for prepared statements. Fix CSHARP-110.