cast types to fix warnings
guess public key path in case of gnutls
fix favourites integrity when config file is new