C++ standalone: added support for multiple clocks and multiple networks
(resolves #153)