osx: fix some linux-related clashes.