libpfrng: use cmake