Add sys/types.h include for clang on FreeBSD to compile the regress tests.
Attempt to use cc before gcc.
Fix the call to iconv on FreeBSD/NetBSD in tests.
Merge branch 'master' into develop