Tweak apt and build order on travis
Link math.h