Change the signature of `uumain` to return `int`

This implements part of #211.