Fixed build of fortran code