some namespace cleaning.
Merge pull request #1277 from Yangqing/dev

some more namespace cleaning.
Reintroduce pkg-config with optional Makefile.config flag.