Added support for building in a separate directory

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
autogen.sh : Fix message.