DESTDIR compatibility + making config variables redefinable by buildscript

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Merge pull request #4 from msva/master

DESTDIR compatibility + custom flags compatibility + LuaJIT compatibility