fixes to gcc to find its dependencies