Fix compile error in Fortran bindings