BUG #14336. Fix building on Examples.

Examples were not being build with BUILD_EXAMPLES was ON. Fixed that.

Change-Id: Id982866a5fce5402f9eeaca207b2008b8e3f119e
Merge topic '14336_fix_examples' into next

069a212 BUG #14336. Fix building on Examples.