Add a signal handler to pause.

It returns 0 when a signal is received.

Fixes #1496
does running go get ... also get the upx command, which appears to be separate?  If not, is this going to break for people that don't have upx installed?