COMP: Use SA_RESTART only if it is defined for the current platform. This partially addresses bug#3556.