signal: fix compilation on OSX