fix panic with unix socket
Merge pull request #1035 from dotcloud/fix_panic_cast

- Runtime: fix panic with unix socket