add "extern" or "static" to all .h / add xa_patch.h to all .h