Fix flex for pam build

Change-Id: Ib33bc5b83e273c1a492e09226a45fe5e021dc35a