After compiling you have to use a "Binder".
It will bind the exe files to 1 using a stub. This method was used by many viri and trojans to spread them over the net and over usb-sticks.
Thats the reason why it is often detected as virus!
If you have the code of all 3 why not copy them together instead of merging the compiled exe files??