Fix IMAP compilation error.