Allow cassandra to compile under java 8

patch by dbrosius reviewed by jmckenzie for cassandra-7028