s3: build with pam support when possible