fix pkg building