Make load_mapping_file() static
Include w2c/config.h instead of copying definitions
Use xmalloc() like the rest of the code
Visual Studio 2005 does not know c99
Better check for stdbool.h