Make failed tests output the exit code.
Add LIBDIR to LD_LIBRARY_PATH when running the Cython tests.