Fix library incompatibility warning.
Add default timeout of 5s to polling in examples.