Fixing out of tree build, cmake

Fixes #2922