Fix compiler warnings in testsuite/.
Fix building of testsuite.
Merging test suite fixes from Jelmer.
configure: Add spaces after <<EOF heredoc markers for clarity

I mean, they confuse the vim bash syntax highlighter
This is now an evil fork >:D