Enabled linkage autodetect in the hope of fixing travis build error