cpu: added `extern "C"` to headers