Better handling of Fortran library