build: improve OMakeroot and add lib-version