Cosmetics
Fix gcc complaints
Compiling stencil examples only on platforms supporting lambdas
Adding example 6, fixing an issue with serialize_buffer