Expressions with side effects in BOOST_ASSERT() fail in release builds. :-P

Also suppress a few 'unused variable' warnings.