Make autogen.sh work on OS X if it has glibtoolize instead of libtoolize

Building snappy on OS X didn't work out of the box (for me, anyway), since OS X has glibtoolize rather than libtoolize. This change checks for libtoolize first, but falls back to glibtoolize if libtoolize is not found.