Fix warnings and compile errors for ADIOS