improve ccan target in makefile
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
fixed some weird makefile bugs

i think in osx its bad to have a directory as a dependency, as
make seems to think the directory is always newer than everything
else, even if it isnt.
fixed makefile typo and added iconv lib for osx
fixed uninitialized variable bug in tests
Merge branch 'master' into port_osx
fixed encoding test error

seems that without declaring locale to be unicode
the L'...' will not end up being correct utf-32
but some other type of multibyte encoding.
declare unicode locale in other tests for good measure

all tests are passing now (osx 10.5)
add configurator temp dir to gitignore
Merge branch 'master' into port_osx

Conflicts:
	Makefile
	test/db_test.c
	test/encoding_test.c
	test/fifo_test.c
	test/query_test.c
	test/ui_state_test.c
	test/util_test.c
improve valgrind targets in makefile

on OSX 10.5: running valgrind on any program that tries to
initialize sqlite3 causes a segfault. seems like a stack
overflow in one of the sqlite internal malloc calls.
improve lock logging

also improve macro variable names
fix initialization bug in ui.c

pipe_mtx was not getting initialized or destroyed
changes to makefile for merge of port_osx