Fix a bug in the checksum algorithm of core/lib.lua
Full support for GRE and ICMPv6 checksum

The vpws and ns_responder apps now handle checksums correctly in all cases.

Note that the current implementation of csum() in core/lib.lua
performs badly in the fast path and should not be used with the vpws
app.