Bugfixes for the FORTRAN library.