build: improve 'inline' declaration for two functions.

They failed to build on OpenBSD.
tests: don't assume 'seq' is installed. SKIP if not found.
tests: improve portability of error message detection.
maint: add script to build & check on remote machine