Additional library checks and adjust compile options for OpenBSD