Make some OSX-only functions static

Gets rid of function prototype warnings.
Merge pull request #1426 from lioncash/osx

Make some OSX-only functions static