nginx: add support for out-of-tree building