Changed compiler settings, fixed error in example snippet.
Cleaned/suppressed warnings.