fix compile bug for serial cpp pi estimation