libfetch: make this cross buildable.