slim: fix build with ft2 & pam support