Add ldap and imap extensions

I added `imap` and `ldap` extension files as I needed them.