fix missing pwd.h in OSX