Add missing imports for posix.py for OS X
These don't seem to do harm on Linux.
#header#<title>Mercurial repository not found</title></head><body><h2>Mercurial repository not found</h2>The specified repository "#repo|escape#" is unknown, sorry.Please go back to the main repository list page.#footer#