Try to detect gzopen64 function
Fix owncloud template
Fix sso (logout on empty hash)