print errors in pointer comparisons during tests
link against libm and libdl