Use -O2, and make the 'work' variable (count) a volatile.

This is providing reasonable results.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>