Get rid of compile-time pk11_flavor and use a runtime one.
When compiling --with-pkcs=(somemodule) pk11_flavor is set, setting some configuration options. However, pkcs11 module path is a configurable option, and e.g. ubuntu compiles by default with softhsm, but user can use the binary with Ultimaco HSM.
The code should detect dynamically what pkcs11 library is being used and act accordingly.