Modification for latest Pangoin. Compiled well on Mac with Clang.

Hi.
This is slight modification for latest Pangolin.