add travis config
improve test runner for travis
link against libm on linux
print errors in pointer comparisons during tests