Fix several test failures on Linux/FreeBSD caused by compiler configuration and invalid environment:
- TestSharedLib/TestSharedLibStrippedSymbols - set up explicit environment for target.LaunchSimple in case of Linux/FreeBSD.
- Fix compiler version detection - since CC environment variable may contain flags along with binary (e.g. "clang -Qunused-arguments -fcolor-diagnostics") we need to extract CC binary to allow which(..) to deduce correctly a compiler's full path .
Will we need this on FreeBSD and Linux later on? I.e., do we need to append this to the environment?