Leave constants as constants.

Instead of generating constants and flag names at compile time, which is
hard to read and complex, leave the constants as constants and instead
move the computation of flag names into runtime.  This leads to simpler,
more straightforward code.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>