Move coveralls to build_and_test.sh

I'm wondering if the segfault problem is due to mismatch in g++
versions.