Fix Python C++ implementation build issues

Fix Python C++ implementation build issues
  1. Haven't included the include path for "config.h".
  2. Use of C++11 auto keyword.

Fix issue #92 

@pherl