Added a new function SetFilePermissions to set permissions of a file.

I'm not sure about the Windows implementation. See this feature request: https://bugs.alliedmods.net/show_bug.cgi?id=6152
These can just go directly in the cpp file since they aren't used elsewhere.