lsof: fix build on Xcode-only systems

Fixes #398.