Fix to sendPosTest (C++), Fixes to run on Windows