Fix CMakeLists.txt to build in bitbake tree