a couple of macros to make your life easier when using libconfig