Fix build error in Mac OS X

The IFT_FASTETHER, IFT_FASTETHERFX, IFT_GIGABITETHERNET constants are not defined in Mac OS X Mountain Lion. Only IFT_ETHER and IFT_L2VLAN are. This patch checks for the existence of these definitions.