compile.sh: refactor checkfail

checkfail function cannot work with `set -e` at the beginning of the
script: every command that will return != 0 will stop the script.

This commit replaces checkfail with a || fail "..." function (to keep
error explanations)
8 jobs for !187 with refactor-checkfail in 46 minutes and 36 seconds (queued for 1 second)
detached
Status Job ID Name Coverage
  Build
passed #293098
android debian
build-libvlc-arm64

00:21:10

passed #293099
android debian
build-libvlc-armv7

00:22:12

passed #293100
android debian
build-libvlc-x86

00:22:37

passed #293101
android debian
build-libvlc-x86_64

00:21:29

passed #293102
android debian
build-ml-arm64

00:24:15

passed #293103
android debian
build-ml-armv7

00:24:14

passed #293104
android debian
build-ml-x86

00:24:12

passed #293105
android debian
build-ml-x86_64

00:23:57