gyp: fix build on freebsd