make sure android build errors exit > 0 (fix #671)