Check the exit status of the generated C program when we run it, and exit if it failed (partly from Axel Simon).