fixed bugs of handling VAO/VBO
renamed CommonMacros.h to Global.h
fixed compile errors
fixed test