C runtime fixes

- Added missing setParent calls when nodes are moved between trees, so
they maintain the correct relationship.
- Added a number of casts to satisfy the compiler.
- Renamed an all-uppercase member variable to all-lowercase as it
conflicts with an existing macro.
- Removed declaration and usage of "true" and "false" typedefs.
- Removed reference to Perforce from the MSVC solution.