fix osx sigaction hopefully