Move check after libraries are loaded, so that $conf['compression'] is not turned off in the case that gzopen doesn't exist while gzopen64 does exist, as inc/compatibility.php ought to have fixed.
Merge pull request #917 from danny0838/master

Fixed a bug that $conf['compression'] is turned off when gzopen doesn't exist and gzopen64 does exist.
Trim unnecessary / at start of windowssharelink
Merge pull request #926 from micgro42/trimSlashes

Trim unnecessary / at start of windowssharelink