Ludovic Sylvestre's injury-time goal earned Blackpool a 2-1 win over Derby County and ensured Championship survival for the Seasiders.