Imap extension back compatibility and ruby 2.1.0 namspaces fix