Adapt the current package to jrl cmake-modules requirements + correct some compilation bugs