std::exception fixup for --enable-gnome-vfs

Change-Id: Ia0a903a38f8ae2897d0d9d6159597f720bbc24a5