Fixed errors; working autotools