workaround broken msghdr struct on 64bit linux