Use the right sigaction ABI.

Resolves #577.