Rewrite the Unix socket test to be 1.8-compatible.