Replaced calls to clock_gettime with glib equivalents
Fixed type comparison warnings in ssl.c