fix cmake/gperf scripts to allow build from completely different binary dir