move ev.h to lib/