Link dependencies after the project libraries

The tests link the dependencies first and then dune-cornerpoint; this probably works on modern distributions due to some DT_NEEDED field in the library.