tools: fix GnuTLS build by adding missing libgcrypt build flags
afc: fix some return types (afc_error_t vs. idevice_error_t)