cmake support for OSX
not everyone does brew link qt5, so default to use the opt path
handle edge cases