changed namespace stat to stats due to a clash with wchar.h in msvc 9