Correctly handle ByteBuffers by using existing methods. Build against Cassandra 1.2.1.