buildtest: retry failed builds once

On Travis CI often builds fail spuriously.

This PR lets `make buildtest` retry the build once.
Merge pull request #1546 from Kijewski/buildtest-retry

buildtest: retry failed builds once