Fix crash on osx
Merge branch 'master' of github.com:fumyuun/pgb-cpp