fix pkg build