minor refactoring, add bouncycastle provider if it if missing, and check
if the unlimited policy files are installed.