For others trying to get this working here is my recipe:
1) set path so powershell and wbem don't interfere (still needed for downloads to work):
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\Users\USER\bin;C:\WINDOWS\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Users\USER\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
2) do cpan install which will take over an hour(med fast pc in a VM) and spew _many_ errors and eventually fail (but all necessary files will download)
C:\Users\USER>cpan -i Wx
# this will fail
#NOTE: every time you run this it generates
#a new Wx-0.9932-X dir and in it a new
#wxapi.h, so just run it once and let
#it complete..
3) edit the wxapi.h file to undef calloc
> cd C:\Strawberry\cpan\build\Wx-0.9932-0\cpp
> vi wxapi.h
:133
#copy paste "undef malloc" line and change
#to "undef calloc" with a c instead of an m
4) do not run cpan -i Wx again!!! instead do the following
> cpan
cpan> look Wx
# this entered the latest Wx dir (for me -3)
cpan> perl Makefile.pl
# this generates make file necessary for following
cpan> gmake install test
# everything that is touched by wxapi.h will be recompiled,
#it will take about 15 mins this time, all tests should pass
Repeated to remove truncation seen in comment preview (remove newlines):
set PATH=
C:\WINDOWS\system32;
C:\WINDOWS;
C:\Users\USER\bin;
C:\WINDOWS\System32\OpenSSH\;
C:\Strawberry\c\bin;
C:\Strawberry\perl\site\bin;
C:\Strawberry\perl\bin;
C:\Users\USER\AppData\Local\Microsoft\WindowsApps;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;