Make some OSX-only functions static

Gets rid of function prototype warnings.