Make private functions in core/ static

A couple of private functions (only get used in the same source file) aren't defined as static.