open, fix freebsd-specific dependecy