DESTDIR compatibility + making config variables redefinable by buildscript

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>