build: fix FDELT_TYPE configure check

This probably never worked properly. Confirmed working now with every compiler
I throw at it.
libc-compat: add new symbol that's now needed
Merge remote-tracking branch 'bitcoin/pr/4664'