Update to Bouncy Castle 1.51

Uses 8dd9a6577d5499c572130f6fd739350449851c50 and
b5b20e23505345091be6fe19c2daab8dcc711029 for reference on what needed to
be changed.