lib-tests: Signal handlers don't return int on most platforms, and
using a Linux-specific internal typedef to cast away the incompatible
pointer warning when registering with signal() was the wrong way to
resolve this.