[MP] Migrate files code to a single file.
Use long instead of int in some file functions.
Security to prevent mods from manipulating dll/so/dylib/pk3.
Don't include client.h in every case.