gcrypt: add key derivation support and some hash algorithms

Also, clean up some warnings from newer versions of Vala related to
unowned/weak and an extra CCode annotation.