Update build system to allow co-existence of multiple binary bindings.

Borrow some build system infrastructure from node-sqlite3 to allow the
simultaneous installation of bindings for different architectures
(ia32, x64) and node versions (0.8, 0.10, etc).