Added proper error reporting for configure failures.

Signed-off-by: Frank Mertens <frank@cyblogic.de>
Added function to extract file name suffix.

Signed-off-by: Frank Mertens <frank@cyblogic.de>
GNU tool chain: Switch to gcc for default compiler, linker invocation (enables non-C++ builds)

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