You must have a bzip2.exe in this folder, or some environment variable that allow bzip2 to resolve properly.
http://gnuwin32.sourceforge.net/packages/bzip2.htm
x86_64-w64-mingw32-g++ protecc.c --static -o protecc.exe
g++ protecc.c --static -o protecc
Usage: protecc.exe <bsp_file>