import upstream version 1.9.17.1
Merge branch 'upstream' into bp/precise
backport 1.9.17.1 to precise
fix php patches
fix examples installation