Thousands flee coastal villages as typhoon approaches Philippines