Add dlib library, add glib tests (some new bugs found)