When publishing, check that javac version starts with 1.6

Review by @jsuereth so he can enjoy the hackery