Merge pull request #300 from pushkarsingh/master

 mailimap_has_qresync should be called to check QRESYNC instead of mailimap_has_condstore
Added capability for X-GM-EXT-1 (Gmail)
Fixed build (for Cocoapods)
Fixed state when select() fails on IMAP