fixes for gcc script