Thousands flee Philippine coast as storm approaches