[fix] compilation warning and make it to not compile if nob is disabled
[buid] added setting of the nob flag for examples