Move a variable definition from header file to source file. This fixes the build on FreeBSD 13+. Add a missing LIB_DEPENDS entry.