fix build warnings with lean-psk mode