Build rlib