working build of couchjs

couchjs is now built correctly. It can be build against the libraries
already installed on the system or statically.

By default it set the CFLAGS to /usr/include/js and the LIBS to -lmozjs185.

These values can be changed by setting the environnment variables
JS_CFLAGS and JS_LIBS.