Makefile/tests: use return values to communicate errors
fish_tests.cpp: set return value if tests fail
configure/Makefile: remove unused variables and unneeded declarations