Suppress or fix warnings

Suppress or fix warnings, and add compiler options.