Allow lsof to build on darwin (fixes #2219)