libcap: fix cross build.