lib/replace: move MAXHOSTNAMELEN to system/network.h