Fix in-tree build with cmake.