Fix two portability issues found by the musl libc.

__GNUC_PREREQ was defined in glibc's features.h
__{BEGIN,END}_DECLS was defined in glibc's sys/cdefs.h