GLib deprecation fixes
Fix some compiler warnings with glib 2.70:
Use g_pattern_spec_match() instead of g_pattern_match() which is deprecated since glib 2.70
Fixes compiler warnings with glib 2.70
dtls: don't use deprecated g_binding_get_source() with newer GLib versions
Couple more g_memdup() -> g_memdup2() fixes
Fixes deprecation warnings with newer GLib versions.