Made MemoryFile.pas compile with FPC-Linux

Warning: Untested!!!
Should work though, as the changes were minor.