All uses of `extern fn` should mean `extern "C" fn`. Closes #9309.