Fixed the build failures occurred in Cassandra test cases, due to API changes.