Switch from fork() to libev.