tcp: fix build with go1.2 on dragonfly, solaris