Fix compile errors and warnings for minimal-net.
Improve some comments and debug messages.
Enable a node to ping6 itself.