gvfs: Fix build with lightWeight=false (close #2068)

Needed for SMB backend.