fix forward declaration of CredentialsFactory::create