add gfortran compiler support (#9600, patch from Xiangfu Liu via Qi hardware)