Redmine #5211: Detect broken strndup on AIX and provide workaround.

FWIW the name "cf3_FUNC_STRNDUP" revealed that it is not a pristine copy, at least the name of the function has changed.