fortran: ensure to specify the shared library version