Build warns and fails in configure on clang/yosemite.

Flags weren't checked and `-fvisibility=internal` caused failure on OSX.
Early positioning of `AC_USE_SYSTEM_EXTENSIONS` caused configure warning.
Fix above, add comments, set tools prereq.