* Make the code compile with VC++ 2010 and older SDK versions.
* End composition properly when deactivated.