Build Math.lib before building Tools.
Remove unused codes.
Refactoring for vertex attribute.