glob: fix build for platforms without __THROW