Refactor Travis tests, fix Lapack