fix autogen.sh with new sources path

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
fix circular inclusion

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>