Passing a struct from fortran to C++ works