Exactly, for the MAX version (C++) you need to compile it with these flags:
g++.exe .\intention_repeater_max.cpp -O3 -o .\intention_repeater_max.exe -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic
This will not work on Windows Powershell, you have to use Command Prompt.
Otherwise, you need these files in the same folder as your executable (.exe)
libgcc_s_seh-1.dll
libstdc+±6.dll
libwinpthread-1.dll