Wave to them and smile like you know them. It might make them think that you know them. At the very least, smiling will make you feel better.