Fix compilation warnings and errors. PR: 234234 Submitted by: Shawn Webb <shawn.webb@hardenedbsd.org>