* Make the code compile with older versions of SDK.
* Add missing files in CMakeLists.txt.