Add libqes as a submodule and set it up in cmake

It now all works the same way kmlib did