Fix #1782

Must use extern "C" otherwise C functions are not linked with the build when called from Objective C++ (.mm) files
More C headers that make the link fail when included in Objective C++ files (#1782)
Test for C headers in Objective C++ files (#1782)
Merge pull request #1783 from mobiware/development

Fix #1782