SLIRP 64-bit patch (from qemu).
Added missing ENDTRY macros (only needed for C compatibility)