Bump bouncycastle version to 1.49

Some bugs were fixed since 1.47