libwar2: use macros to read
libpud: map file in memory before parsing