move raw socket code to common code; not fully working on netbsd/rump yet though