A hackish, ugly fix for TS-1726

The #if defined is only really necessary for Solaris, Illumos has
timersub defined.
As for the casting: That's the same on both, Illumos and Solaris.
TS-1727: Make spdy compile on Solaris and Illumos

I'm not really happy with this.