Fix cmake build when libtecla is installed