Ported for Ubuntu trusty.
Fixed broken tests.
Merge branch 'hotfix/14.06.1401596949'