[cmake] fix macros, glib2 including and libev cflags