libports: define gai_strerror as weak in libc

Other libc plugins may want to override this function or in fact
use the implementation provided by libc-net when using e.g. lwip.