fix deprecated functions
gnutls_handshake_set_timeout added in gnutls 3.1.0

(need to add handshake timeout for previous gnutls versions?)
Merge pull request #91 from rezso/master

fix deprecated functions.