Fix warnings when building with Boehm (and -W).
Enable additional warnings.