Updated to Bouncy Castle JDK5+ 1.47 so that it can be used from JRuby 1.7+