added new functions, improved glob, added a macro to suppress a mingw problem on stdio filebuf