scons: make embedding orthogonal to the platform

To enable embedding in platforms other than linux.
13 files changed