Thousands rally in Warsaw ahead of election