Better support for switching directory based on configure output.
Initial support for the boost library.

The gypified boost is tested on Mac and most of libraries can build without problem. However, there are two targets (libboost_log and libboost_log_setup) will cause errors when building.