[pbc_to_exe] fix build with MinGW