Add support for CC, AR, CFLAGS and LDFLAGS on env of configure.py

This enables supporting alternative compilers such as the clang
compiler.