add GLMatrix.cpp and fix some compile error