remove some unused macros
replace some memcpy with RTW_WN*