[PD] error compiling Gem on ubuntu 17.10