Please try..
- to have some use of HKEY in the main()
- check whether your libcitadel.h is the right one (if its in there) and if you edit that and add a syntax error if it wastes the whole compile
- try copying the HKEY macro into the imap_...
- if that helps, maybe explicityl add an include there?
-