remove some warnings 

1. change the size of pLongRefList
2. remove re-defined macro warnings