Keep track of build failures and show them at the end #3

Keep track of errors when building over all platforms and show them at
the end after all platforms have been tried. Returns an error code if
any builds failed.