fix all missing instances of __cplusplus checks/extern "C" in headers

patch by Arvid Picciani (aep)
21 files changed