Sort abit: add load/store from/to global memory macros

Fix some compiler warnings.