solve some compile error in Mac-G++ compiler.
interface restructure and VEC2 implement go a step further.