Make the code compatible to Cassanda 1.x and 2.x

The application has to provide the appropriate version of the driver