Moved common support in PlatformDarwin and PlatformLinux into PlatformPOSIX.

These generally support running against an lldb-platform exe
as a remote platform.