Convert some conditionals in Makefile to option helpers
Make GetWMClassFromAppName available on FreeBSD