improve test runner for travis
print errors in pointer comparisons during tests
link against libm and libdl