Updated the gcc installation script with logging.