Be more backwards compatible when setting socket options for LWP::UserAgent