fix HTTPFile on osx