gnutls: don't use deprecated gnutls_connection_end_t
gnutls: fix "cast to pointer from integer of different size" warnings
Merge pull request #3 from tmatth/fix_warnings

Fix warnings & gnutls casting