another fix for broken gzlib linking #865