boards: add `extern "C"` to header files