Well, that wouldn't be a Beowulf cluster then. Most real clusters are single-purpose systems, designed to do massive amounts of computations and basically nothing else; you wouldn't use each node as a desktop, they wouldn't even have desktop software installed (or even hardware, for that matter).
Connecting regular desktop machines together as nodes of a cluster is something that was worked on by the
openMosix project, but unfortunately they are no longer active.
If you just want to use the combined power of the machines for compilation, you might want to look into
distcc. distcc is a system for distributed compilation of C/C++. Basically it sends out files to be compiled to slave machines, they send back the binary objects, and then it combines them all up at the end. It is simple and can be very effective. You can install distcc on basically any distribution, and you don't need to change anything else on the machine to use it.