Fix MinGW build after lldb-platform-work merge:

- mode_t is defined in <sys/types.h>
- reorganized S_* user rights into win32.h
- Use Host::Kill instead of kill
- Currently #ifdef functions using pread/pwrite.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189364 91177308-0d34-0410-b5e6-96231b3b80d8
Remove need of <functional> for CommandObjectCommands.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189365 91177308-0d34-0410-b5e6-96231b3b80d8