Support builds out of tree

Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>