It looks like the only thing that libpam-dev installs is libpam0g-dev, so it should be fine to switch it over.  I'll submit a PR for that.