ci: fix errors when compiling from a directory that is not a direct subdirectory
CMake was not generating the files version.h and version_lib.go into
the project source directory when building from a subdirectory such as
./build/debug/. So these files could not be found during compilation.