Use sigprocmask() if pthread_sigmask() isn't present