Fix compilation if SO_{SND,RCV}TIMEO_WORKS is not defined

Fixes #1567