Apptimize to 1.6.5.
Merge pull request #9050 from DHowett/master

Apptimize to 1.6.5.