update bouncycastle version to 1.51 released 2014-09-27
improved JDK detection