Requires signs_lib commit 38362152 (2019-09-25) or later Also fixed undeclared global warnings and removed some obsolete bits here and there.