apr: fix cross build.