Add missing require for 'pathname'.