Add `extern` keyword to filter function prototypes