darwin: gfortran: add needed inputs and other fixes
Close #10532.
authored by Asko Soukka and committed by Vladimír Čunát 10 years ago efd65296 1e285a7e