avio: cosmetics, move AVIOContext to start of the file.