configure.ac: Check for buggy -Wdocumentation
Increase _POSIX_C_SOURCE and _XOPEN_SOURCE

FreeBSD needs this.