updated checks for glob.h