The functions crypt_set_metadata_size() and friends are supported since libcryptsetup-2.0. This also merges checks for functions used for supporting libcryptsetup plugins with others. Moreover, check existence of one more function (crypt_logf) that is used in libcryptsetup plugins.