opencv 2.4.9: Fix for Linuxbrew

Closes #1422.
Closes #1516.

Signed-off-by: Shaun Jackman <sjackman@gmail.com>