refine gperf build script