A little brutal osx compat.