Fix GetSockOptInt for mixed architectures.

This expands on ianoshen's fix for SetSockOptInt in 8377da20b60346498701f0ace03e378fe12d4b39.