Use dynamic linking on Travis

Reduces build and linking time