Fixed an issue with jpgp building