Fix configure script to properly detect gmime-2.6 if available.