SO_KEEPALIVE is available on all relevant OS.
I don't see how this breaks the whole Internet. Yes the server might not behave, but that's not a TCP problem.
SO_KEEPALIVE is available on all relevant OS.