fix build for toolchain (statically link to libev)