Um ... Where do I begin? Wow.
1) NO.
2) Vicidial is never compiled. All of Vicidial is scripts. These scripts are NOT compiled on the server. Thus you NEVER compile Vicidial.
3) But if your goal is to use a hosted PBX, you likely want to use Vicidial just for "DIALER!!" ... this solution is much easier than you are trying to make it. You can have your agents use their hosted PBX phones as "agent phones". When they log in to Vicidial, their PBX phones would then ring and they would be logged in to Vicidial as Agents and the PBX would see them as "busy" because they are now On the Phone. From that point forward, they are using Vicidial until they log out. Then they are back to the Hosted PBX.
4) You appear to want to "combine" these two systems in some fashion, which would be similar to purchasing a Bicycle and a Van and then trying to figure out how to "engineer them" so they can work in tandem. It's much simpler to put the Bicycle IN the van while driving the van and then park the van and ride the bike. They each serve their own purpose and it would be quite costly to try to modify the van to use bicycle wheels or mount the V6 engine on the bicycle frame. Use them for what they are designed for, however, and they can be quite complimentary. And if you do, upgrading either one (later) will NOT require engineering them both all over again. (No welding, either.) So: leave your hosted PBX alone, and use Vicidial as a separate server and link the Vicidial phones to call the Agent phones on the PBX. Now you have two systems that compliment one another. Two Systems. (But you do not actually need the "hosted PBX" at all if you have Vicidial, honestly, Vicidial will do everything you need it to do. You should pay a consultant to walk you through your needs, you sound like someone about to be ripped off ... seriously.)
Happy Hunting!