Fixing various autotools stuff