Fix a few bugs in StyleClassTree.

This commit also updates the VC12 project.