Fixing bugs in new ChFrameMoving code - GCC compatibility and such.