use ev_uint16_t instead of unsigned short for port

deprecated functions are left unchanged

fixes #178