[eventloop] More FreeBSD portability.