Fix for non-OSX platforms