fix compile errors with g++ 4.xx of hieupx 's gibbslda++