A motley collection of changes

This PR contains:
 - Warning suppression.
 - A few build system fixes.
 - Updated example programs.

This is (unfortunately) collected in a single PR, instead of separate ones.