Removed using a function (not 100% portable).  Compacted code. Added quick'n'dirty unofficial/unsupported "--build" option.
Removed using a function (not 100% portable).  Compacted code.
Added quick'n'dirty unofficial/unsupported "--build" option.

All fixes by larsa.

Alexpux/Coin3D,Alexpux/Coin3D,Alexpux/Coin3D,Alexpux/Coin3D