fixed libccan targets to build on osx

turns out using create-ccan-tree is not so portable. switched to
using the method in the aug makefile for building ccan into a
static library