Automatically read CC environment variable to select the compiler

Signed-off-by: Frank Mertens <frank@cyblogic.de>