Make sure the build traps `SIGINT` and `SIGTERM` for cleanup.
Merge pull request #971 from WMeldon/sigint-trapping

Make sure the build traps `SIGINT` and `SIGTERM` for cleanup.