fix strict-aliasing warnings due to ip_add_to_int32 macro
fix implicit-function-declaration warning in ec_curses.c