Ported tun_device de-/initialization to FreeBSD