Minor fixes

Three commits initially included in this pull request:

1.  the "compile" script is generated and should not be in the repo
1. use the N_ROUND constant to size the round_const array
1. use a modulus to prevent a buffer overflow