Ok. Commenting out the include in haxelib/hxcpp/3,4,64/src/hx/libs/std/Sys.cpp has fixed the issue. I am assuming this is safe to do as the next time I am required to update hxcpp this issue would be fixed.