Use wget when curl is not found
Add --add-stdcall-alias linker option to fix build on native windows