Merge pull request #945 from kwhatmough/next

Use proper Windows environment variable in install script.
Fixed some issues related to cloning RenderState.

Fixes #838
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge pull request #946 from sgrenier/next

Fixes RenderState cloning issues.
Fixes cloning issue in character sample.
Merge pull request #947 from sgrenier/next

Fixes cloning issue in character sample.
Fixed a bug in cleanup code for AIStateMachine.
Merge pull request #948 from sgrenier/next

Fixed a bug in cleanup code for AIStateMachine.