Updated compiler flags in template projects.
Upgraded most example projects to 1.8.