The 1st patch enforces the -Werror compiler flag by default to hopefully prevent further compiler warnings.
It fixes all existing compiler warnings, including the duplicate definition of _GNU_SOURCES in set.c. I have already sent patches to fix this bug several times, but they have not yet been applied in master. Please apply this patch, this is really a bug.
The 2nd patch fixes the pkgconfig file.