support BSD systems by using netifaces