CI: extern "C" check

Add a script that checks headers for `extern "C"` declaration.
Run this script in Travis.
Hm, maybe a slight speed improvement. Anyhow - let's add that as part of a PR that refactors this function for all these tests instead.