add an option to enable a set of compilation warnings
Fix Cgl compilation of examples