backport autoloader magic trying to find class in lib folder
Merge pull request #4699 from owncloud/stable5_autoloader_try_lib_folder

Stable5 autoloader try lib folder