libev: fix build on smartos