Add `extern "C"` to enable use with C++