Only extract first element for c_loc when using gfortran