include/cmake.mk: backport from trunk

Fixes a build error on OS X where it can't find
an appropriate ranlib

Signed-off-by: Claudio Leite <leitec@staticky.com>