Check all programs listed and patch wmname for BSD

Added checks for programs tic and wget
Patch wmname for compilation on FreeBSD