Thousands flee in Philippines