ecere/net: Fixed warnings and minor code tweaks