Add LINK_PAM option to force linking pam
Add systemlibs as dependencies to the target they are being embedded in