Fix out-of-tree build

Now this sequence works properly:

    NOCONFIGURE=1 ./autogen.sh
    mkdir build && cd $_
    ../configure
    make