Prepare for code freeze(AMD64)

NOTE: some macros maybe undefined for other platform
e.g.
CACHELINE, MAX_XXX