glib 2.40.0 fix curl SSL error

Fixes error `curl: (35) error:14077458:SSL
routines:SSL23_GET_SERVER_HELLO:reason(1112)`