moved xglobal.h to src/core; moved modules' export macros to xglobal.h