einfo.h, rc.h.in: ensure __BEGIN_DECLS is defined

Some Standard C Libraries, like musl, don't define __BEGIN_DECLS
or __END_DECLS.  We add some ifdef magic to ensure these are
available.