resolve bouncycastle dependency mismatches