How to compile a plugin for Linux on Windows using std headers

Hi. I’m trying to cross-compile a plugin for ue4.18 that I have working on windows. I have followed the the wiki here A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums and succesfully got a cross compile build of my project using clang and have it running on Linux.

Now I’m trying to build the game with my included plugin. If uses some std c++ headers and when I attempt to compile the plugin I get the following errors.

In file included from ThirdParty/Linux/LibCxx/include/c++/v1\string:442:
1>  In file included from ThirdParty/Linux/LibCxx/include/c++/v1\algorithm:633:
1>ThirdParty/Linux/LibCxx/include/c++/v1\utility(382,85): error : no template named 'get' in namespace 'std::std::__1'; did you mean simply 'get'?
1>                                    typename __make_tuple_types<_Tuple>::type>::type>(_VSTD::get<0>(__p))),
1>                                                                                      ^~~~~~~
1>  E:\ue4.18-engine\UnrealEngine-4.18\Engine\Source\ThirdParty\Linux\LibCxx\include\c++\v1\__config(451,15):  note: expanded from macro '_VSTD'
1>  #define _VSTD std::_LIBCPP_NAMESPACE
1>                ^
1>  ThirdParty/Linux/LibCxx/include/c++/v1\__tuple(152,1):  note: 'get' declared here
1>  get(tuple<_Tp...>&) _NOEXCEPT;
1>  ^
1>EXEC : fatal error : too many errors emitted, stopping now [-ferror-limit=]

It looks like something is wrong with the namespace. But I don’t know where to look or what setting to tweak.

This is an excerpt from the header it is complaining about.

#include <cstddef>
#include <stdexcept>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cerrno>
#include <cstring>
#include <cmath>
#include <cfloat>
#include <iterator>
#include <string>
#include <limits>
#include <vector>
#include <map>
#include <memory>
#include <set>
#include <typeinfo>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <streambuf>
#include <iomanip>
#include <locale>
#include <stdarg.h>
#include <wchar.h>

#ifdef CSI_POSIX
#include <cxxabi.h>
#include <limits.h>
#endif

Is there a way to get my plugin to cross compile for linux using the std headers?