Add DLL changes and new compiled DLL to finalize the feature of the
previous commit. Fix compiling issue in Header file and and minor
runtime issue in the python code.