Add ability to detect unofficial openjdk builds.

Patch by brandonwilliams, reviewed by enigmacurry for CASSANDRA-7799
Merge branch 'cassandra-2.0' into cassandra-2.1
Ninja s/substract/subtract
Merge branch 'cassandra-2.1' into trunk