More autotools fixes, make it compile