Fix networking syscalls

This fixes up the execute/emulation problems discussed in #1348.  It also adds support for `recvmsg` and `msgrcv`.