FileStream rework. Works on MinGW now.
Move some MDX functions into the parent class.