Building cmake from source on linux Fedora 37

It looks like the compiler is not built properly. It has its own mount.h but is also finding the system mount.h as well, possibly in another context.