opr: build and install pic library correctly