1. -Fix a bug of CMakeLists.txt
2. -Add logic to create building instance.
3. -Upgrade beats lib.