reshaped fortran interface to Dlopen et al