ettercap: fix compilation on 10.6 and lower

Fixes #17467.