Update bouncycastle to 1.50
Merge pull request #6196 from ctomc/build

BouncyCastle upgrade to 1.50