Add autoconf support and dependencies (.d) files