added fortran interface to BgPrintf.