Filesystem: fix #3008, improving namespace discipline to avoid naming conflicts with the C++0x std library.