Fix cmake build on linux when libtecla is installed