Add patch against libmagic and Homebrew to fix compilation issues on OS X (Darwin).

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>