Refactor Travis tests

Now we test various configurations (with and without Python, with and without
Lapack, etc.).

Also we set the rpath correctly, so now we do not have to mess up with
LD_LIBRARY_PATH anymore.
Use P, Q (the new interface) in double_min