Wrap socketcall in an ifdef because it doesn't exist on amd64